import request from '~/utils/request'
export default {
  //生成订单
  createOrder(courseId) {
    return request({
      url: `/eduOrde/order/createOrder/${courseId}`,
      method: 'post'
    })
  },
  //根据订单id查询订单信息
  getOrdersInfo(orderId) {
    return request({
      url: `/eduOrde/order/getOrderInfo/${orderId}`,
      method: 'get'
    })
  },
  //生成二维码
  createNative(orderNo){
    return request({
      url: `/eduOrde/edu-payLog/createNative/${orderNo}`,
      method: 'get'
    })
  },
  queryPayStatus(orderNo) {
    return request({
      url: `/eduOrde/edu-payLog//queryPayStatus/${orderNo}`,
      method: 'get'
    })
  }
}
